package com.example.cdctest.mapper;

import com.example.cdctest.pojo.Admin;
import com.example.cdctest.pojo.Knowledge;

import java.util.List;

public interface KnowledgeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Knowledge record);

    int insertSelective(Knowledge record);

    Knowledge selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Knowledge record);

    int updateByPrimaryKey(Knowledge record);

    List<Knowledge> getAllKnowledge(String content);

    Knowledge getKnowledgeById(int knowledgeId);
//取出所有疾控知识
    List<Knowledge> getKnowledge();

//停用启用疾控知识
    void updateEnable(Integer id);

    //添加疾控知识
    void knowledgeAdd(Knowledge knowledge);

//修改疾控知识讲堂的答案
    void updatedaan(Knowledge knowledge);
//删除疾控知识
    void deleteKnowledge(Integer id);
}